package com.xx.service.impl;

import com.xx.entity.User;
import com.xx.mapper.UserMapper;
import com.xx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;
    @Override
    public User selectUserById(int id) {
        System.out.println("selectUserById");
        System.out.println(id);
        return userMapper.selectUserById(id);
    }

    @Override
    public void updateUser(User user) {
        System.out.println("updateUser");
        System.out.println(user);
    }

    @Override
    public void addUser(User user) {
        System.out.println("addUser");
        System.out.println(user);
    }

    @Override
    public void deleteUser(Integer id) {
        System.out.println("deleteUser");
        System.out.println(id);
    }
}
